package com.ruoyi.bbsAdmin.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛用户登陆统计对象 bbs_login_statistics
 * 
 * @author ruoyi
 * @date 2024-12-05
 */
@TableName(value = "bbs_login_statistics")
public class LoginStatistics
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 学校id */
    @Excel(name = "学校id")
    private Integer schoolId;

    /** 登录人数 */
    @Excel(name = "登录人数")
    private Integer userCount;

    /** 登录次数 */
    @Excel(name = "登录次数")
    private Integer loginCount;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    @Excel(name = "创建时间")
    private Date createTime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updateTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSchoolId(Integer schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Integer getSchoolId() 
    {
        return schoolId;
    }
    public void setUserCount(Integer userCount) 
    {
        this.userCount = userCount;
    }

    public Integer getUserCount() 
    {
        return userCount;
    }
    public void setLoginCount(Integer loginCount) 
    {
        this.loginCount = loginCount;
    }

    public Integer getLoginCount() 
    {
        return loginCount;
    }
    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }

    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("userCount", getUserCount())
            .append("loginCount", getLoginCount())
            .append("loginDate", getLoginDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
